<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>


<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">



  <meta name="description" content="记录字符串的所有方法"/>




  <meta name="keywords" content="字符串的方法" />










  <link rel="alternate" href="/teresa/atom.xml" title="Teresa">




  <link rel="shortcut icon" type="image/x-icon" href="/teresa/favicon.ico?v=2.9.0" />



<link rel="canonical" href="https://littlefaye.gitee.io/teresa/2018/10/22/字符串方法/"/>



  <link rel="stylesheet" type="text/css" href="/teresa/lib/fancybox/jquery.fancybox.css" />




  <link rel="stylesheet" type="text/css" href="/teresa/lib/nprogress/nprogress.min.css" />



<link rel="stylesheet" type="text/css" href="/teresa/css/style.css?v=2.9.0" />



  
  <script id="baidu_analytics">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?9b4723f0455add81c1300727d6fe2f0f";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  <script id="baidu_push">
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>





  <script src="//cdn1.lncld.net/static/js/3.1.1/av-min.js"></script>
  <script id="leancloud">
    AV.init({
      appId: "q8I1nPpo7445tVF84mvOlAyj-gzGzoHsz",
      appKey: "i9j12HoNltgi5uq4DLvonO0h"
    });
  </script>




<script>
  window.config = {"title":"Teresa","subtitle":null,"description":"about fe","author":"Teresa-哼哼","language":"zh-CN","timezone":null,"url":"https://littlefaye.gitee.io/teresa","root":"/teresa/","permalink":":year/:month/:day/:title/","permalink_defaults":null,"source_dir":"source","public_dir":"public","tag_dir":"tags","archive_dir":"archives","category_dir":"categories","code_dir":"downloads/code","i18n_dir":":lang","skip_render":null,"new_post_name":":title.md","default_layout":"post","titlecase":false,"external_link":true,"filename_case":0,"render_drafts":false,"post_asset_folder":false,"relative_link":false,"future":true,"highlight":{"enable":true,"auto_detect":false,"line_number":true,"tab_replace":null,"first_line_number":"always1"},"default_category":"uncategorized","category_map":null,"tag_map":null,"date_format":"YYYY-MM-DD","time_format":"HH:mm:ss","per_page":10,"pagination_dir":"page","theme":"even","deploy":{"type":"git","repo":"https://gitee.com/littleFaye/Teresa.git"},"ignore":[],"keywords":null,"index_generator":{"per_page":10,"order_by":"-date","path":""},"archive_generator":{"per_page":10,"yearly":true,"monthly":true,"daily":false},"tag_generator":{"per_page":10},"category_generator":{"per_page":10},"marked":{"gfm":true,"pedantic":false,"sanitize":false,"tables":true,"breaks":true,"smartLists":true,"smartypants":true,"modifyAnchors":"","autolink":true},"server":{"port":4000,"log":false,"ip":"0.0.0.0","compress":false,"header":true},"since":2015,"favicon":"/favicon.ico","rss":false,"menu":{"Home":"/","Archives":"/archives/","Tags":"/tags","Categories":"/categories","About":"/about"},"color":"Default","toc":true,"fancybox":true,"pjax":true,"copyright":{"enable":true,"license":"<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc/4.0/\" target=\"_blank\">知识共享署名-非商业性使用 4.0 国际许可协议</a>"},"reward":{"enable":false,"qrCode":{"wechat":null,"alipay":null}},"social":{"email":"1748711164@qq.com","stack-overflow":null,"twitter":null,"facebook":null,"linkedin":null,"google":null,"github":"https://github.com/Faye0807","weibo":null,"zhihu":null,"douban":null,"pocket":null,"tumblr":null,"instagram":null},"leancloud":{"app_id":"q8I1nPpo7445tVF84mvOlAyj-gzGzoHsz","app_key":"i9j12HoNltgi5uq4DLvonO0h"},"baidu_analytics":"9b4723f0455add81c1300727d6fe2f0f","baidu_verification":null,"google_analytics":null,"google_verification":null,"disqus_shortname":null,"changyan":{"appid":null,"appkey":null},"livere_datauid":null,"version":"2.9.0"};
</script>

    <title> 字符串方法 - Teresa </title>
  </head>

  <body><div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/teresa/." class="logo">Teresa</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>

<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    
      <a href="/teresa/">
        <li class="mobile-menu-item">
          
          
            首页
          
        </li>
      </a>
    
      <a href="/teresa/archives/">
        <li class="mobile-menu-item">
          
          
            归档
          
        </li>
      </a>
    
      <a href="/teresa/tags">
        <li class="mobile-menu-item">
          
          
            标签
          
        </li>
      </a>
    
      <a href="/teresa/categories">
        <li class="mobile-menu-item">
          
          
            分类
          
        </li>
      </a>
    
      <a href="/teresa/about">
        <li class="mobile-menu-item">
          
          
            关于
          
        </li>
      </a>
    
  </ul>
</nav>

    <div class="container" id="mobile-panel">
      <header id="header" class="header"><div class="logo-wrapper">
  <a href="/teresa/." class="logo">Teresa</a>
</div>

<nav class="site-navbar">
  
    <ul id="menu" class="menu">
      
        <li class="menu-item">
          <a class="menu-item-link" href="/teresa/">
            
            
              首页
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/teresa/archives/">
            
            
              归档
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/teresa/tags">
            
            
              标签
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/teresa/categories">
            
            
              分类
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/teresa/about">
            
            
              关于
            
          </a>
        </li>
      
    </ul>
  
</nav>

      </header>

      <main id="main" class="main">
        <div class="content-wrapper">
          <div id="content" class="content">
            
  
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          字符串方法
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2018-10-22
        </span>
        
          <div class="post-category">
            
              <a href="/teresa/categories/JavaScript/">JavaScript</a>
            
          </div>
        
        
        <div class="post-visits"
             data-url="/teresa/2018/10/22/字符串方法/"
             data-title="字符串方法">
            阅读次数 0
          </div>
        
      </div>
    </header>

    
    
  <div class="post-toc" id="post-toc">
    <h2 class="post-toc-title">文章目录</h2>
    <div class="post-toc-content">
      <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#indexOf-string"><span class="toc-text">indexOf(string)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#charAt-index"><span class="toc-text">charAt(index)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#charCodeAt-index"><span class="toc-text">charCodeAt(index)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#concat-拼接字符串"><span class="toc-text">concat() 拼接字符串</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#slice-index-n"><span class="toc-text">slice(index, n)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#substring-index-n"><span class="toc-text">substring(index, n)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#substr-index-n"><span class="toc-text">substr(index, n)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#trim-去除首尾空格"><span class="toc-text">trim() 去除首尾空格</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#字符串大小写转换"><span class="toc-text">字符串大小写转换</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#search-regexp"><span class="toc-text">search(regexp)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#replace-regexp-要替换成的string"><span class="toc-text">replace(regexp, 要替换成的string)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#match-regexp-非全局匹配时与正则对象方法的exec返回结果很像"><span class="toc-text">match(regexp)非全局匹配时与正则对象方法的exec返回结果很像</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#split-regexp"><span class="toc-text">split(regexp)</span></a></li></ol>
    </div>
  </div>



    <div class="post-content">
      
        <h2 id="indexOf-string"><a href="#indexOf-string" class="headerlink" title="indexOf(string)"></a>indexOf(string)</h2><ul>
<li>返回包含 字符串 string 的索引位置（第一次匹配的位置）</li>
<li>不包含则返回-1</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">'this is a string'</span>.indexOf(<span class="string">'is'</span>); <span class="comment">// 2</span></span><br></pre></td></tr></table></figure>
<h2 id="charAt-index"><a href="#charAt-index" class="headerlink" title="charAt(index)"></a>charAt(index)</h2><ul>
<li>返回index 处的字符</li>
<li>index 超出字符长度范围，返回空字符串</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">'this is a string'</span>.charAt(<span class="number">1</span>); <span class="comment">// "h"</span></span><br></pre></td></tr></table></figure>
<h2 id="charCodeAt-index"><a href="#charCodeAt-index" class="headerlink" title="charCodeAt(index)"></a>charCodeAt(index)</h2><ul>
<li>返回index 处字符的code值 字符编码</li>
<li>index 超出字符长度范围 则返回 NaN</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">'this is a string'</span>.charCodeAt(<span class="number">1</span>); <span class="comment">// 104(h的code码：字符编码)</span></span><br></pre></td></tr></table></figure>
<h2 id="concat-拼接字符串"><a href="#concat-拼接字符串" class="headerlink" title="concat() 拼接字符串"></a>concat() 拼接字符串</h2><ul>
<li>返回一个新字符串，不改变原字符串</li>
<li>可以有任意多个参数</li>
<li>数组也有一个这个方法</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">'this is a string'</span>.concat(<span class="string">' ahhh'</span>, <span class="string">' jjjj'</span>); <span class="comment">// "this is a string ahhh jjjj"</span></span><br></pre></td></tr></table></figure>
<h2 id="slice-index-n"><a href="#slice-index-n" class="headerlink" title="slice(index, n)"></a>slice(index, n)</h2><ul>
<li>返回新字符串，不改变源字符串</li>
<li>截取 [index, n) 范围内的字符串</li>
<li>当参数为负值时，会与字符串长度相加</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">'this is a string'</span>.slice(<span class="number">1</span>, <span class="number">3</span>); <span class="comment">// "hi"</span></span><br><span class="line"><span class="string">'this is a string'</span>.slice(<span class="number">-5</span>, <span class="number">-3</span>); <span class="comment">// "tr" length = 16</span></span><br><span class="line"><span class="string">'this is a string'</span>.slice(<span class="number">11</span>, <span class="number">13</span>); <span class="comment">// "tr"</span></span><br></pre></td></tr></table></figure>
<h2 id="substring-index-n"><a href="#substring-index-n" class="headerlink" title="substring(index, n)"></a>substring(index, n)</h2><ul>
<li>返回新字符串，不改变源字符串</li>
<li>截取 [index, n) 范围内的字符串</li>
<li>当参数为负值时，自动转换为 0 </li>
<li>该方法，默认将 两参数中较小的值，作为开始值（即 substring(5,3) == substring(3,5)</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">'this is a string'</span>.substring(<span class="number">1</span>, <span class="number">3</span>); <span class="comment">// "hi"</span></span><br><span class="line"><span class="string">'this is a string'</span>.substring(<span class="number">5</span>, <span class="number">-3</span>); <span class="comment">// "this " length = 16</span></span><br><span class="line"><span class="string">'this is a string'</span>.substring(<span class="number">5</span>, <span class="number">0</span>); <span class="comment">// "this "</span></span><br><span class="line"><span class="string">'this is a string'</span>.substring(<span class="number">0</span>, <span class="number">5</span>); <span class="comment">// "this "</span></span><br></pre></td></tr></table></figure>
<h2 id="substr-index-n"><a href="#substr-index-n" class="headerlink" title="substr(index, n)"></a>substr(index, n)</h2><ul>
<li>返回新字符串，不改变源字符串</li>
<li>截取 [index, n + index) 范围内的字符串(即，从 index 开始 截取 n 位 字符串)</li>
<li>当第一个参数为负值时，会与字符串长度相加</li>
<li>当第二个参数为负值时，自动转换为0</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">'this is a string'</span>.substr(<span class="number">1</span>, <span class="number">3</span>); <span class="comment">// "his"</span></span><br><span class="line"><span class="string">'this is a string'</span>.substr(<span class="number">-5</span>, <span class="number">-3</span>); <span class="comment">// "" length = 16</span></span><br><span class="line"><span class="string">'this is a string'</span>.substr(<span class="number">11</span>, <span class="number">0</span>); <span class="comment">// "tr"</span></span><br></pre></td></tr></table></figure>
<h2 id="trim-去除首尾空格"><a href="#trim-去除首尾空格" class="headerlink" title="trim() 去除首尾空格"></a>trim() 去除首尾空格</h2><ul>
<li>返回新字符串 不改变源字符串</li>
</ul>
<h2 id="字符串大小写转换"><a href="#字符串大小写转换" class="headerlink" title="字符串大小写转换"></a>字符串大小写转换</h2><ul>
<li>toLocalUpperCase()</li>
<li>toUpperCase()</li>
<li>toLowerCase()</li>
<li>toLocalLowerCase()</li>
</ul>
<h2 id="search-regexp"><a href="#search-regexp" class="headerlink" title="search(regexp)"></a>search(regexp)</h2><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * 接收参数为正则表达式，不支持全局g </span></span><br><span class="line"><span class="comment"> * 若传入参数不是正则表达式 则首先会通过RegExp构造函数转换为正则</span></span><br><span class="line"><span class="comment"> * 返回首次匹配处的索引值 若不存在返回-1  </span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line">-------------------------------------------------------------------</span><br><span class="line">string.search(<span class="regexp">/^\d$/i</span>); <span class="comment">// ===&gt;search() </span></span><br><span class="line"><span class="string">'thIs is a string'</span>.search(<span class="regexp">/is/g</span>);      <span class="comment">//  ===&gt;5</span></span><br><span class="line"><span class="string">'thIs is a string'</span>.search(<span class="regexp">/is/i</span>);    <span class="comment">//  ===&gt;2</span></span><br></pre></td></tr></table></figure>
<h2 id="replace-regexp-要替换成的string"><a href="#replace-regexp-要替换成的string" class="headerlink" title="replace(regexp, 要替换成的string)"></a>replace(regexp, 要替换成的string)</h2><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * 接收参数 第一个为正则表达式，第二个为要替换成的字符串 也可以是函数，计算返回动态的字符串 支持全局g</span></span><br><span class="line"><span class="comment"> * 若第一个参数不是正则表达式 是字符串，与search不同，而是直接匹配这个字符串</span></span><br><span class="line"><span class="comment"> * 返回首次匹配处的索引值 若不存在返回-1  </span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line">string.replace(<span class="regexp">/javascript/gi</span>,<span class="string">'javaScript'</span>)  <span class="comment">//===&gt; 将全局不区分大小写的JavaScript字符串替换成 javaScript</span></span><br></pre></td></tr></table></figure>
<h2 id="match-regexp-非全局匹配时与正则对象方法的exec返回结果很像"><a href="#match-regexp-非全局匹配时与正则对象方法的exec返回结果很像" class="headerlink" title="match(regexp)非全局匹配时与正则对象方法的exec返回结果很像"></a>match(regexp)非全局匹配时与正则对象方法的exec返回结果很像</h2><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * 最常用的string正则方法</span></span><br><span class="line"><span class="comment"> * 接收参数 为正则表达式</span></span><br><span class="line"><span class="comment"> * 返回匹配结果组成的数组  </span></span><br><span class="line"><span class="comment"> * 如果正则没有g匹配符，则返回数组第一个为完整匹配元素，其他存放用圆括号括起来的与字符串相匹配的子串</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line"><span class="string">'this is a number 1 or 123 or 98 0 9 is 67'</span>.match(<span class="regexp">/\d+/g</span>)</span><br><span class="line"><span class="comment">// ====&gt; ["1", "123", "98", "0", "9", "67"]</span></span><br><span class="line"><span class="string">'this is a number 1 or 123 or 98 0 9 is 67'</span>.match(<span class="regexp">/\d+/</span>)</span><br><span class="line"><span class="comment">// ====&gt; ["1", index: 17, input: "this is a number 1 or 123 or 98 0 9 is 67"]</span></span><br><span class="line"><span class="string">'this is a number 1 or 123 or 98 0 9 is 67'</span>.match(<span class="regexp">/(\ )\d+/</span>)</span><br><span class="line"><span class="comment">// ====&gt; [" 1", " ", index: 16, input: "this is a number 1 or 123 or 98 0 9 is 67"]</span></span><br><span class="line"><span class="string">'this is a number 1 or 123 or 98 0 9 is 67'</span>.match(<span class="regexp">/(\ )\d+/g</span>)</span><br><span class="line"><span class="comment">// ====&gt; [" 1", " 123", " 98", " 0", " 9", " 67"]</span></span><br></pre></td></tr></table></figure>
<h2 id="split-regexp"><a href="#split-regexp" class="headerlink" title="split(regexp)"></a>split(regexp)</h2><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * split()可以接受一个正则参数</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="string">'this is a number 1 or 123 or 98 0 9 is 67'</span>.split(<span class="regexp">/\s|i/</span>)</span><br><span class="line"><span class="comment">// ===&gt; ["th", "s", "", "s", "a", "number", "1", "or", "123", "or", "98", "0", "9", "", "s", "67"]</span></span><br><span class="line"><span class="string">'this is a number 1 or 123 or 98 0 9 is 67'</span>.split(<span class="regexp">/\s/</span>)</span><br><span class="line"><span class="comment">// ====&gt; ["this", "is", "a", "number", "1", "or", "123", "or", "98", "0", "9", "is", "67"]</span></span><br></pre></td></tr></table></figure>

      
    </div>

    
      
      

  <div class="post-copyright">
    <p class="copyright-item">
      <span>原文作者: </span>
      <a href="https://littlefaye.gitee.io/teresa">Teresa-哼哼</a>
    </p>
    <p class="copyright-item">
      <span>原文链接: </span>
      <a href="https://littlefaye.gitee.io/teresa/2018/10/22/字符串方法/">https://littlefaye.gitee.io/teresa/2018/10/22/字符串方法/</a>
    </p>
    <p class="copyright-item">
      <span>许可协议: </span>
      
      <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/" target="_blank">知识共享署名-非商业性使用 4.0 国际许可协议</a>
    </p>
  </div>



      
      
    

    
      <footer class="post-footer">
        
          <div class="post-tags">
            
              <a href="/teresa/tags/JavaScript/">JavaScript</a>
            
          </div>
        
        
        
  <nav class="post-nav">
    
      <a class="prev" href="/teresa/2018/10/26/HTML元素简记/">
        <i class="iconfont icon-left"></i>
        <span class="prev-text nav-default">HTML元素简记</span>
        <span class="prev-text nav-mobile">上一篇</span>
      </a>
    
    
      <a class="next" href="/teresa/2018/10/22/数组方法/">
        <span class="next-text nav-default">数组方法</span>
        <span class="prev-text nav-mobile">下一篇</span>
        <i class="iconfont icon-right"></i>
      </a>
    
  </nav>

      </footer>
    

  </article>


          </div>
          
  <div class="comments" id="comments">
    
  </div>


        </div>
      </main>

      <footer id="footer" class="footer">

  <div class="social-links">
    
      
        
          <a href="mailto:1748711164@qq.com" class="iconfont icon-email" title="email"></a>
        
      
    
      
    
      
    
      
    
      
    
      
    
      
        
          <a href="https://github.com/Faye0807" class="iconfont icon-github" title="github"></a>
        
      
    
      
    
      
    
      
    
      
    
      
    
      
    
    
    
  </div>


<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://hexo.io/">Hexo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/ahonn/hexo-theme-even">Even</a>
  </span>

  <span class="copyright-year">
    
    &copy; 
     
      2015 - 
    
    2018

    <span class="heart">
      <i class="iconfont icon-heart"></i>
    </span>
    <span class="author">Teresa-哼哼</span>
  </span>
</div>

      </footer>

      <div class="back-to-top" id="back-to-top">
        <i class="iconfont icon-up"></i>
      </div>
    </div>

    
  
  

  



    
  



  
  





  
    <script type="text/javascript" src="/teresa/lib/jquery/jquery.min.js"></script>
  

  
    <script type="text/javascript" src="/teresa/lib/slideout/slideout.js"></script>
  

  
    <script type="text/javascript" src="/teresa/lib/fancybox/jquery.fancybox.pack.js"></script>
  

  
    <script type="text/javascript" src="/teresa/lib/pjax/jquery.pjax.min.js"></script>
  

  
    <script type="text/javascript" src="/teresa/lib/nprogress/nprogress.min.js"></script>
  


    <script type="text/javascript" src="/teresa/js/src/even.js?v=2.9.0"></script>

  </body>
</html>
